<%--
  Created by IntelliJ IDEA.
  User: Mr.nico
  Date: 2022/1/4
  Time: 20:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
  <title>审批</title>
  <style>
    body{margin:5px;background-color: burlywood;}
    #main{background-image:url(images/bg/bg12.png);widtd:90%;margin:0 auto;min-height:600px;padding:0px 0px;}
    .a1{ text-align:center;color:blue;letter-spacing:10px;font-size:48px;font-family:华文行楷;line-height:120px;}
    .a1 span {color:red;}
    img{height:80px;}

    .right{position:absolute;top:40px;right:0px;}
    #nav{background-color:#330;line-height:40px;padding:0px 50px;font-size:14px}
    #nav a{color:white}
    #wall{padding:10px 50px;}
    td{text-align:center;border:none;border-bottom:1px dashed black}
    table{background-image:url(images/bg/bg14.jpg)}
  </style>
</head>
<body>
<div id="main">
  <div class="a1">Better Luck T<span>o</span>m<span >o</span>rr<span>o</span>w</div>
  <div id="nav">
    <a href="#">首页</a>
  </div>
  <div id="wall">
    <h1 style="text-align:center">${task.name}</h1>
    <table border="1px" width="60%" cellspacing="0" align="center" border="0">
      <tbody>
      <tr>
        <td>编号</td>
        <td>科室</td>
        <td>医生</td>
        <td>出诊日期</td>
        <td>时间段</td>
        <td>挂号费用</td>
        <td>放号数量</td>
        <td>剩余号数</td>
        <td>状态</td>
        <td>操作</td>
      </tr>
        <tr>
          <td>${ask.planId}</td>
          <td>${ask.planRoom}</td>
          <td>${ask.doc.docName}</td>
          <td>${ask.planDate}</td>
          <td>
            <c:if test="${ask.planTimetype=='1'}">上午</c:if>
            <c:if test="${ask.planTimetype!='1'}">下午</c:if>
          </td>
          <td>${ask.planFee}</td>
          <td>${ask.planMax}</td>
          <td>${ask.planCan}</td>
          <td>
            <c:if test="${ask.planState=='1'}">正常</c:if>
            <c:if test="${ask.planState!='1'}">关闭</c:if>
          </td>
          <td>
            <a href="change?pid=${ask.planId}">修改</a>
          </td>
        </tr>
      </tbody></table>
    <p></p>
    <form action="" method="post">
      <table border="1px" width="60%" cellspacing="0" align="center" border="0">
        <tbody>
        <tr>
          <td>审批意见</td>
          <td><textarea name="name" cols="100" rows="5"></textarea></td>
        </tr>

        <tr>
          <td></td>
          <td>
            <c:forEach var="b" items="${btns}">
              <input type="submit" value="${b}" name="result" style="margin: 20px">
            </c:forEach>

          </td>
        </tr>
        </tbody>
      </table>
    </form>

    <table align="center" width="60%" cellspacing="0px">
      <tbody>
      <tr>
        <th>编号</th>
        <th>审批人</th>
        <th>审批意见</th>
        <th>审批时间</th>
      </tr>
      <c:forEach var="c" items="${cmList}">
      <tr>
        <td>${c.id}</td>
        <td>${c.userId}</td>
        <td>${c.fullMessage}</td>
        <td><fmt:formatDate value="${c.time}" pattern="yyyy/MM/dd HH:mm"/></td>
      </tr>
      </c:forEach>
    </table>

  </div>
</div>
</body>
</html>
